import Vue from "vue";
import axios from "axios";

import App from "./App";
import router from "./router";
import store from "./store";

import iView from "iview";

import VueSocketio from 'vue-socket.io';
import socketio from 'socket.io-client';

import "iview/dist/styles/iview.css";

if (!process.env.IS_WEB) Vue.use(require("vue-electron"));
Vue.http = Vue.prototype.$http = axios;
Vue.config.productionTip = false;

Vue.use(iView);
Vue.use(VueSocketio, socketio('http://localhost:9092'), store);

/* eslint-disable no-new */
new Vue({
	components: { App },
	router,
	store,
	template: "<App/>"
}).$mount("#app");
